﻿using Catastrophe.Emgucv.ViewMode;
using Emgu.CV;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Catastrophe.Emgucv.UI
{
    /// <summary>
    /// ucEmgucv.xaml 的交互逻辑
    /// </summary>
    public partial class ucEmgucv : UserControl
    {
        /// <summary>
        /// 
        /// </summary>
        ucEmgucvModel viewMode { get; set; }
        public ucEmgucv()
        {
            InitializeComponent();
            viewMode = this.DataContext as ucEmgucvModel;
            this.Loaded += UcEmgucv_Loaded;
            CvInvoke.UseOpenCL = true;
        }

        private void UcEmgucv_Loaded(object sender, RoutedEventArgs e)
        {
            viewMode.snackbarService.SetSnackbarPresenter(SnackbarPresenter);
        }
    }
}
